package com.contory.ssn_lgnd.app.maingame.event;

import android.util.Log;

import com.contory.ssn_lgnd.app.maingame.Enemy;
import com.contory.ssn_lgnd.app.maingame.EventObjectPtr;

public class EnemyGoEvent implements EventObjectPtr{
	final Enemy enemy;
	float desX;
	float desY;
	
	public EnemyGoEvent(Enemy enemy, float desX, float desY){
		this.enemy = enemy;
		this.desX = desX;
		this.desY = desY;
	}
	
	@Override
	public void excute() {
		enemy.setMovToDes(desX, desY);
	}

	@Override
	public boolean getEndBool() {
		if(enemy.getState() == Enemy.STATE_IDLE)
			return true;
		else
			return false;
	}

}
